package com.heima.comment.pojos;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("ap_comment")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ApComment implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 作者id
     */
    private Integer authorId;

    /**
     * 作者姓名
     */
    private String authorName;

    /**
     * 文章id
     */
    private Long entryId;

    /**
     *
     */
    private Integer type;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论点赞数
     */
    private Integer likes;

    /**
     * 评论回复数
     */
    private Integer reply;

    /**
     *
     */
    private Integer flag;

    /**
     * 创建时间
     */
    private Date createdTime;
}
